package com.rs.controller.device;

import cn.hutool.json.JSONUtil;
import com.rs.cache.LocalCache;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 设备 controller 类
 *
 * @author zhouwz
 * @date 2020/9/14
 **/
@Controller
public class AgvController {

    /**
     * 获取地图数据
     **/
    @GetMapping(value = "getMapData")
    @ResponseBody
    public String getMapDataList() {
        return JSONUtil.toJsonStr(LocalCache.mapInfo);
    }
}